package com.woniu.mapper;

import com.github.pagehelper.Page;
import com.woniu.entity.dto.BrandSearchDTO;
import com.woniu.pojo.Brand;

import java.util.List;

public interface BrandMapper {
    Page<Brand> listSearch(BrandSearchDTO brandSearchDTO);

    Integer save(Brand brand);

    Integer deleteByIds(Long[] ids);

    Integer updateById(Brand brand);

    Brand getById(Long id);

    Brand checkNameExist(String name);

    List<Brand> listAll();
}
